package com.jetgege.resumepoint;

import java.io.Closeable;
import java.io.IOException;


/**
 * Created by JJT-ssd on 2017/4/20.
 */

public class IOUtil {
    public static void closeAll( Closeable... closeables){
        if (closeables==null)return;
        for (Closeable closeable :closeables){
            if (closeable!=null){
                try {
                    closeable.close();
                }catch (IOException e){
                    e.printStackTrace();
                }
            }
        }
    }
}
